// 使用 Mock
var Mock = require('mockjs')
var menuMock = Mock.mock({
  data: [
    {
      id: 125,
      authName: '用户管理',
      order: 1,
      path: 'users',
      children: [{
        id: 104,
        authName: '用户列表',
        path: 'users',
        children: []
      }]
    },
    {
      id: 103,
      authName: '权限管理',
      path: 'rights',
      children: [
        {
          id: 111,
          authName: '角色列表',
          path: 'roleslist'
        },
        {
          id: 133,
          authName: '权限列表',
          path: 'rightslist'
        }
      ]
    },
    {
      id: 101,
      authName: '商品管理',
      path: 'goods',
      children: [
        {
          id: 122,
          authName: '商品列表',
          path: 'goodslist'
        },
        {
          id: 109,
          authName: '分类参数',
          path: 'classes'
        },
        {
          id: 100,
          authName: '商品分类',
          path: 'goodsclass'
        }
      ]
    },
    {
      id: 102,
      authName: '订单管理',
      path: 'orders',
      children: [{
        id: 155,
        authName: '订单列表',
        path: 'orderlist'
      }]
    },
    {
      id: 145,
      authName: '数据统计',
      path: 'reports',
      children: [{}]
    }
  ],
  meta: {
    msg: '获取菜单列表成功',
    status: 200
  }
})

Mock.mock('/api/getmenu', 'get', menuMock)